from fastapi import APIRouter
from starlette.responses import HTMLResponse

from apps.core.global_model import ParseHtmlModel
from apps.core.m_route import ContextIncludedRoute
from apps.core.return_info import InputInfoModel

router = APIRouter(route_class=ContextIncludedRoute)


@router.post("/showhtml", response_class=HTMLResponse)
async def select_step_info(input: InputInfoModel[ParseHtmlModel]):
    """
    查询step_info表的数据,提供通过id和条件查询
    :param input:
    :return:
    """
    html = input.data.html
    return html
